package com.gitee.feizns.webtemplate.entity.vo.commons.page;

import com.gitee.feizns.webtemplate.commons.data.page.IPage;

import java.util.List;

/**
 * @author feizns
 * @since 2019/5/12 0012
 */
public class FvPageImpl<T> implements FvPage {

    private IPage<T> page;

    /**
     * 数据
     */
    private List<T> rows;

    public FvPageImpl(IPage<T> page, List<T> rows) {
        this.page = page;
        this.rows = rows;
    }

    @Override
    public Integer getBeginPos() {
        return page.getBeginPos();
    }

    @Override
    public Integer getCurtPage() {
        return page.getCurtPage();
    }

    @Override
    public Integer getPageSize() {
        return page.getPageSize();
    }

    @Override
    public Long getPageCount() {
        return page.getPageCount();
    }

    @Override
    public long getTotal() {
        return page.getTotal();
    }

    @Override
    public List getRows() {
        return rows;
    }

}
